package JVM;

/**
 * @Author Luming
 * @Date 2024/7/10 17:02
 * @Description:
 */
public class JVM {
    public static void main(String[] args) {
//        Test a = new Test();
//        Test b = a;
//        b = null;
//        a = null;
        
        Test a = new Test();
        Test b = new Test();
        
        a.t = b;
        b.t = a;
        
        a = null;
        b = null;
    }
    
    Node build() {
        Node a = new Node();
        Node b = new Node();
        Node c = new Node();
        Node d = new Node();
        Node e = new Node();
        Node f = new Node();
        Node g = new Node();

        a.left = b;
        a.right = c;
        b.left = d;
        b.right = e;
        e.left = g;
        c.right = f;
        
        return a;
    }
}

class Node {
    Node left;
    Node right;
}

class Test {
    Test t;
}
